<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<title>LTE-UNB: LinkAdaptation::LinkAdaptation Class Reference</title>

<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="doxygen.css" rel="stylesheet" type="text/css" />

<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { searchBox.OnSelectItem(0); });
</script>

</head>
<body>
<div id="top"><!-- do not remove this div! -->


<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  
  
  <td style="padding-left: 0.5em;">
   <div id="projectname">LTE-UNB
   
   </div>
   
  </td>
  
  
  
 </tr>
 </tbody>
</table>
</div>

<!-- Generated by Doxygen 1.7.6.1 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="namespaces.html"><span>Namespaces</span></a></li>
      <li class="current"><a href="annotated.html"><span>Classes</span></a></li>
      <li><a href="files.html"><span>Files</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="annotated.html"><span>Class&#160;List</span></a></li>
      <li><a href="classes.html"><span>Class&#160;Index</span></a></li>
      <li><a href="hierarchy.html"><span>Class&#160;Hierarchy</span></a></li>
      <li><a href="functions.html"><span>Class&#160;Members</span></a></li>
    </ul>
  </div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Classes</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>Namespaces</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>Files</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&#160;</span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark">&#160;</span>Variables</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(6)"><span class="SelectionMark">&#160;</span>Friends</a></div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

  <div id="nav-path" class="navpath">
    <ul>
      <li class="navelem"><a class="el" href="namespace_link_adaptation.html">LinkAdaptation</a>      </li>
      <li class="navelem"><a class="el" href="class_link_adaptation_1_1_link_adaptation.html">LinkAdaptation</a>      </li>
    </ul>
  </div>
</div>
<div class="header">
  <div class="summary">
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="#pub-static-methods">Static Public Member Functions</a>  </div>
  <div class="headertitle">
<div class="title">LinkAdaptation::LinkAdaptation Class Reference</div>  </div>
</div><!--header-->
<div class="contents">
<!-- doxytag: class="LinkAdaptation::LinkAdaptation" -->
<p><code>#include &lt;<a class="el" href="_link_adaptation_8h_source.html">LinkAdaptation.h</a>&gt;</code></p>

<p><a href="class_link_adaptation_1_1_link_adaptation-members.html">List of all members.</a></p>
<table class="memberdecls">
<tr><td colspan="2"><h2><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_link_adaptation_1_1_link_adaptation.html#a63c39bfffd632c286c814eb139e2e340">~LinkAdaptation</a> ()</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_link_adaptation_1_1_link_adaptation.html#a6d60fdcafd02fef255ef4dbd134754ae">setParameters</a> ()</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_link_adaptation_1_1_link_adaptation.html#a2308f3376ed62243e42692600d63aa52">initialize</a> ()</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_link_adaptation_1_1_link_adaptation.html#ae3055fda30e69a3f182ff623c6525c48">clear</a> ()</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">double&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_link_adaptation_1_1_link_adaptation.html#a2672be55c02ba0206950fc20e0b777a0">mapSINRs</a> (const vec &amp;sinrs, const int MCS)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_link_adaptation_1_1_link_adaptation.html#a0491e065809af77f6a41bf363ea80324">chooseMCS</a> (vec sinrs, double &amp;sinr, int &amp;MCS, int &amp;rawBits, double &amp;effectiveBits)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">double&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_link_adaptation_1_1_link_adaptation.html#ae1b29b4c73b46c7b764037be178992d7">getBER</a> (const double sinr, const int MCS)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_link_adaptation_1_1_link_adaptation.html#ad35a876fd1ea401a0417c968977c87ee">isBERvalid</a> (const double BER)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_link_adaptation_1_1_link_adaptation.html#a05e26fb6945f548a469dd29a7ed4c9dc">setBits</a> (const int MCS, int &amp;rawBits, double &amp;effectiveBits)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_link_adaptation_1_1_link_adaptation.html#a6824ecf4efa40698f45fedf8d723d347">checkMCS</a> (vec sinrs, int MCS)</td></tr>
<tr><td colspan="2"><h2><a name="pub-static-methods"></a>
Static Public Member Functions</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">static <a class="el" href="class_link_adaptation_1_1_link_adaptation.html">LinkAdaptation</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_link_adaptation_1_1_link_adaptation.html#a3d68270e6aff0e01f7b47c1e1565d2f1">getInstance</a> ()</td></tr>
</table>
<hr/><a name="details" id="details"></a><h2>Detailed Description</h2>
<div class="textblock"><p><a class="el" href="class_link_adaptation_1_1_link_adaptation.html">LinkAdaptation</a> Class. Detailed Description. </p>
</div><hr/><h2>Constructor &amp; Destructor Documentation</h2>
<a class="anchor" id="a63c39bfffd632c286c814eb139e2e340"></a><!-- doxytag: member="LinkAdaptation::LinkAdaptation::~LinkAdaptation" ref="a63c39bfffd632c286c814eb139e2e340" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="class_link_adaptation_1_1_link_adaptation.html#a63c39bfffd632c286c814eb139e2e340">LinkAdaptation::LinkAdaptation::~LinkAdaptation</a> </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Destructor. Left empty. </p>

</div>
</div>
<hr/><h2>Member Function Documentation</h2>
<a class="anchor" id="a6824ecf4efa40698f45fedf8d723d347"></a><!-- doxytag: member="LinkAdaptation::LinkAdaptation::checkMCS" ref="a6824ecf4efa40698f45fedf8d723d347" args="(vec sinrs, int MCS)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool <a class="el" href="class_link_adaptation_1_1_link_adaptation.html#a6824ecf4efa40698f45fedf8d723d347">LinkAdaptation::LinkAdaptation::checkMCS</a> </td>
          <td>(</td>
          <td class="paramtype">vec&#160;</td>
          <td class="paramname"><em>sinrs</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>MCS</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Interface. Detailed description. </p>

</div>
</div>
<a class="anchor" id="a0491e065809af77f6a41bf363ea80324"></a><!-- doxytag: member="LinkAdaptation::LinkAdaptation::chooseMCS" ref="a0491e065809af77f6a41bf363ea80324" args="(vec sinrs, double &amp;sinr, int &amp;MCS, int &amp;rawBits, double &amp;effectiveBits)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void <a class="el" href="class_link_adaptation_1_1_link_adaptation.html#a0491e065809af77f6a41bf363ea80324">LinkAdaptation::LinkAdaptation::chooseMCS</a> </td>
          <td>(</td>
          <td class="paramtype">vec&#160;</td>
          <td class="paramname"><em>sinrs</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">double &amp;&#160;</td>
          <td class="paramname"><em>sinr</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int &amp;&#160;</td>
          <td class="paramname"><em>MCS</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int &amp;&#160;</td>
          <td class="paramname"><em>rawBits</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">double &amp;&#160;</td>
          <td class="paramname"><em>effectiveBits</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Interface. Detailed description. </p>

</div>
</div>
<a class="anchor" id="ae3055fda30e69a3f182ff623c6525c48"></a><!-- doxytag: member="LinkAdaptation::LinkAdaptation::clear" ref="ae3055fda30e69a3f182ff623c6525c48" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void <a class="el" href="class_link_adaptation_1_1_link_adaptation.html#ae3055fda30e69a3f182ff623c6525c48">LinkAdaptation::LinkAdaptation::clear</a> </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Interface. Detailed description. </p>

</div>
</div>
<a class="anchor" id="ae1b29b4c73b46c7b764037be178992d7"></a><!-- doxytag: member="LinkAdaptation::LinkAdaptation::getBER" ref="ae1b29b4c73b46c7b764037be178992d7" args="(const double sinr, const int MCS)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">double <a class="el" href="class_link_adaptation_1_1_link_adaptation.html#ae1b29b4c73b46c7b764037be178992d7">LinkAdaptation::LinkAdaptation::getBER</a> </td>
          <td>(</td>
          <td class="paramtype">const double&#160;</td>
          <td class="paramname"><em>sinr</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const int&#160;</td>
          <td class="paramname"><em>MCS</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Interface. Detailed description. </p>

</div>
</div>
<a class="anchor" id="a3d68270e6aff0e01f7b47c1e1565d2f1"></a><!-- doxytag: member="LinkAdaptation::LinkAdaptation::getInstance" ref="a3d68270e6aff0e01f7b47c1e1565d2f1" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="class_link_adaptation_1_1_link_adaptation.html">LinkAdaptation::LinkAdaptation</a> * <a class="el" href="class_link_adaptation_1_1_link_adaptation.html#a3d68270e6aff0e01f7b47c1e1565d2f1">LinkAdaptation::LinkAdaptation::getInstance</a> </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td><code> [static]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Interface. Sinlgetown instance of the class. </p>

</div>
</div>
<a class="anchor" id="a2308f3376ed62243e42692600d63aa52"></a><!-- doxytag: member="LinkAdaptation::LinkAdaptation::initialize" ref="a2308f3376ed62243e42692600d63aa52" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void <a class="el" href="class_link_adaptation_1_1_link_adaptation.html#a2308f3376ed62243e42692600d63aa52">LinkAdaptation::LinkAdaptation::initialize</a> </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Interface. Left empty. </p>

</div>
</div>
<a class="anchor" id="ad35a876fd1ea401a0417c968977c87ee"></a><!-- doxytag: member="LinkAdaptation::LinkAdaptation::isBERvalid" ref="ad35a876fd1ea401a0417c968977c87ee" args="(const double BER)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool <a class="el" href="class_link_adaptation_1_1_link_adaptation.html#ad35a876fd1ea401a0417c968977c87ee">LinkAdaptation::LinkAdaptation::isBERvalid</a> </td>
          <td>(</td>
          <td class="paramtype">const double&#160;</td>
          <td class="paramname"><em>BER</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Interface. Detailed description. </p>

</div>
</div>
<a class="anchor" id="a2672be55c02ba0206950fc20e0b777a0"></a><!-- doxytag: member="LinkAdaptation::LinkAdaptation::mapSINRs" ref="a2672be55c02ba0206950fc20e0b777a0" args="(const vec &amp;sinrs, const int MCS)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">double <a class="el" href="class_link_adaptation_1_1_link_adaptation.html#a2672be55c02ba0206950fc20e0b777a0">LinkAdaptation::LinkAdaptation::mapSINRs</a> </td>
          <td>(</td>
          <td class="paramtype">const vec &amp;&#160;</td>
          <td class="paramname"><em>sinrs</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const int&#160;</td>
          <td class="paramname"><em>MCS</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Interface. Detailed description. </p>

</div>
</div>
<a class="anchor" id="a05e26fb6945f548a469dd29a7ed4c9dc"></a><!-- doxytag: member="LinkAdaptation::LinkAdaptation::setBits" ref="a05e26fb6945f548a469dd29a7ed4c9dc" args="(const int MCS, int &amp;rawBits, double &amp;effectiveBits)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void <a class="el" href="class_link_adaptation_1_1_link_adaptation.html#a05e26fb6945f548a469dd29a7ed4c9dc">LinkAdaptation::LinkAdaptation::setBits</a> </td>
          <td>(</td>
          <td class="paramtype">const int&#160;</td>
          <td class="paramname"><em>MCS</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int &amp;&#160;</td>
          <td class="paramname"><em>rawBits</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">double &amp;&#160;</td>
          <td class="paramname"><em>effectiveBits</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Interface. Where effectively happens the transmission, according to MCS. </p>

</div>
</div>
<a class="anchor" id="a6d60fdcafd02fef255ef4dbd134754ae"></a><!-- doxytag: member="LinkAdaptation::LinkAdaptation::setParameters" ref="a6d60fdcafd02fef255ef4dbd134754ae" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void <a class="el" href="class_link_adaptation_1_1_link_adaptation.html#a6d60fdcafd02fef255ef4dbd134754ae">LinkAdaptation::LinkAdaptation::setParameters</a> </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Interface. Initializes numberMCSs_, BERt_, codingRate_, betas_ and MCSThresholds_. </p>

</div>
</div>
<hr/>The documentation for this class was generated from the following files:<ul>
<li>RRM/LinkAdaptation/<a class="el" href="_link_adaptation_8h_source.html">LinkAdaptation.h</a></li>
<li>RRM/LinkAdaptation/<a class="el" href="_link_adaptation_8cpp.html">LinkAdaptation.cpp</a></li>
</ul>
</div><!-- contents -->
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Classes</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>Namespaces</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>Files</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&#160;</span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark">&#160;</span>Variables</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(6)"><span class="SelectionMark">&#160;</span>Friends</a></div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>



<hr class="footer"/><address class="footer"><small>
Generated on Thu Oct 25 2012 22:25:35 for LTE-UNB by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.7.6.1
</small></address>

</body>
</html>
